# -*- coding: utf-8 -*-
import pandas as pd
if __name__ == '__main__':
    year_data_dict = {2001: 12, 2002: 14.5, 2003: 19}
    series = pd.Series(year_data_dict)
    print series.head()
    print series.index
    print "-----------"
    series.name = "temp"
    series.index.name = "year"
    print series
    print series.index